.class Lrexsee/sensor/RexseeSensorProximity$1;
.super Ljava/lang/Object;
.source "RexseeSensorProximity.java"

# interfaces
.implements Landroid/hardware/SensorEventListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/sensor/RexseeSensorProximity;-><init>(Lrexsee/core/browser/Browser;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/sensor/RexseeSensorProximity;


# direct methods
.method constructor <init>(Lrexsee/sensor/RexseeSensorProximity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    .line 54
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onAccuracyChanged(Landroid/hardware/Sensor;I)V
    .locals 0
    .param p1, "sensor"    # Landroid/hardware/Sensor;
    .param p2, "accuracy"    # I

    .prologue
    .line 57
    return-void
.end method

.method public onSensorChanged(Landroid/hardware/SensorEvent;)V
    .locals 9
    .param p1, "event"    # Landroid/hardware/SensorEvent;

    .prologue
    const-wide/16 v7, -0x1

    .line 60
    iget-object v3, p1, Landroid/hardware/SensorEvent;->sensor:Landroid/hardware/Sensor;

    invoke-virtual {v3}, Landroid/hardware/Sensor;->getType()I

    move-result v3

    const/16 v4, 0x8

    if-eq v3, v4, :cond_1

    .line 73
    :cond_0
    :goto_0
    return-void

    .line 61
    :cond_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 62
    .local v0, "curTime":J
    iget-object v3, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    # getter for: Lrexsee/sensor/RexseeSensorProximity;->lastUpdate:J
    invoke-static {v3}, Lrexsee/sensor/RexseeSensorProximity;->access$0(Lrexsee/sensor/RexseeSensorProximity;)J

    move-result-wide v3

    cmp-long v3, v3, v7

    if-eqz v3, :cond_2

    iget-object v3, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    # getter for: Lrexsee/sensor/RexseeSensorProximity;->lastUpdate:J
    invoke-static {v3}, Lrexsee/sensor/RexseeSensorProximity;->access$0(Lrexsee/sensor/RexseeSensorProximity;)J

    move-result-wide v3

    sub-long v3, v0, v3

    iget-object v5, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    # getter for: Lrexsee/sensor/RexseeSensorProximity;->mCycle:I
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorProximity;->access$1(Lrexsee/sensor/RexseeSensorProximity;)I

    move-result v5

    int-to-long v5, v5

    cmp-long v3, v3, v5

    if-lez v3, :cond_0

    .line 63
    :cond_2
    iget-object v3, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    invoke-static {v3, v0, v1}, Lrexsee/sensor/RexseeSensorProximity;->access$2(Lrexsee/sensor/RexseeSensorProximity;J)V

    .line 64
    iget-object v3, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    # getter for: Lrexsee/sensor/RexseeSensorProximity;->value:F
    invoke-static {v3}, Lrexsee/sensor/RexseeSensorProximity;->access$3(Lrexsee/sensor/RexseeSensorProximity;)F

    move-result v2

    .line 65
    .local v2, "lastValue":F
    iget-object v3, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    iget-object v4, p1, Landroid/hardware/SensorEvent;->values:[F

    const/4 v5, 0x0

    aget v4, v4, v5

    invoke-static {v3, v4}, Lrexsee/sensor/RexseeSensorProximity;->access$4(Lrexsee/sensor/RexseeSensorProximity;F)V

    .line 66
    iget-object v3, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    # getter for: Lrexsee/sensor/RexseeSensorProximity;->lastEvent:J
    invoke-static {v3}, Lrexsee/sensor/RexseeSensorProximity;->access$5(Lrexsee/sensor/RexseeSensorProximity;)J

    move-result-wide v3

    cmp-long v3, v3, v7

    if-eqz v3, :cond_3

    iget-object v3, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    # getter for: Lrexsee/sensor/RexseeSensorProximity;->lastEvent:J
    invoke-static {v3}, Lrexsee/sensor/RexseeSensorProximity;->access$5(Lrexsee/sensor/RexseeSensorProximity;)J

    move-result-wide v3

    sub-long v3, v0, v3

    iget-object v5, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    # getter for: Lrexsee/sensor/RexseeSensorProximity;->mEventCycle:I
    invoke-static {v5}, Lrexsee/sensor/RexseeSensorProximity;->access$6(Lrexsee/sensor/RexseeSensorProximity;)I

    move-result v5

    int-to-long v5, v5

    cmp-long v3, v3, v5

    if-lez v3, :cond_0

    .line 67
    :cond_3
    iget-object v3, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    # getter for: Lrexsee/sensor/RexseeSensorProximity;->value:F
    invoke-static {v3}, Lrexsee/sensor/RexseeSensorProximity;->access$3(Lrexsee/sensor/RexseeSensorProximity;)F

    move-result v3

    sub-float/2addr v3, v2

    invoke-static {v3}, Ljava/lang/Math;->abs(F)F

    move-result v3

    iget-object v4, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    # getter for: Lrexsee/sensor/RexseeSensorProximity;->mAccuracy:F
    invoke-static {v4}, Lrexsee/sensor/RexseeSensorProximity;->access$7(Lrexsee/sensor/RexseeSensorProximity;)F

    move-result v4

    cmpl-float v3, v3, v4

    if-lez v3, :cond_0

    .line 68
    iget-object v3, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    invoke-static {v3, v0, v1}, Lrexsee/sensor/RexseeSensorProximity;->access$8(Lrexsee/sensor/RexseeSensorProximity;J)V

    .line 69
    iget-object v3, p0, Lrexsee/sensor/RexseeSensorProximity$1;->this$0:Lrexsee/sensor/RexseeSensorProximity;

    # getter for: Lrexsee/sensor/RexseeSensorProximity;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v3}, Lrexsee/sensor/RexseeSensorProximity;->access$9(Lrexsee/sensor/RexseeSensorProximity;)Lrexsee/core/browser/Browser;

    move-result-object v3

    iget-object v3, v3, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v4, "onProximityChanged"

    invoke-virtual {v3, v4}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;)V

    goto :goto_0
.end method
